package cn.b.sky.shop.activiti.model;

import cn.b.sky.common.model.ImeCommon;
import org.activiti.engine.impl.persistence.entity.ModelEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * 
 * <strong>Title : Service.java<br></strong>
 * <strong>Package : cn.b.sky.user.model<br></strong>
 * <strong>Description : </strong>服务实体对象<br> 
 * <strong>Create on : 2015-7-1 上午10:50:59<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class SkyService extends ImeCommon implements Serializable {

  /** 
  * @Fields serialVersionUID : 实体序列化
  * @creator     :lidapeng
  */
  private static final long serialVersionUID = -6773697437348490855L;

  /**
   * 主键
   */
  private Integer id;

  /**
   * 服务标识
   */
  private String serviceCode;

  /**
   * 服务名称
   */
  private String serviceName;

  /**
   * 业务所属，服务所在的业务包，包名（cn.b.sky.mes.pp）
   */
  private String bizPackage;

  /**
   * 服务的输入参数
   */
  private String inParam;

  /**
   * 服务的返回值
   */
  private String returnVal;

  /**
   * 状态。0-启用，1-禁用
   */
  private String status;

  /**
   * 服务的远程调用url
   */
  private String url;

  /**
   * 描述
   */
  private String description;

  /**
   * 关联的流程模型
   */
  private List<ModelEntity> processes = new ArrayList<>();

  /**
   * 服务流程回显是否被选中
   */
  private Boolean checked = false;
  
  /**
   * 类型
   */
  private String type; 

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getServiceCode() {
    return serviceCode;
  }

  public void setServiceCode(String serviceCode) {
    this.serviceCode = serviceCode;
  }

  public String getServiceName() {
    return serviceName;
  }

  public void setServiceName(String serviceName) {
    this.serviceName = serviceName;
  }

  public String getBizPackage() {
    return bizPackage;
  }

  public void setBizPackage(String bizPackage) {
    this.bizPackage = bizPackage;
  }

  public String getInParam() {
    return inParam;
  }

  public void setInParam(String inParam) {
    this.inParam = inParam;
  }

  public String getReturnVal() {
    return returnVal;
  }

  public void setReturnVal(String returnVal) {
    this.returnVal = returnVal;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public List<ModelEntity> getProcesses() {
    return processes;
  }

  public void setProcesses(List<ModelEntity> processes) {
    this.processes = processes;
  }

  public Boolean getChecked() {
    return checked;
  }

  public void setChecked(Boolean checked) {
    this.checked = checked;
  }

}
